<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">

    <!--<title>tab</title>-->
    <style type="text/css">

    </style>
    <link rel="stylesheet" href="../css/app.css"/>
</head>

<body>
<div class="mod_tad">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tbody>
        <tr>
            <td align="right"><p>服务项目</p></td>
            <td>&nbsp;</td>
            <td width="71%">
                <p><select name="select" id="select_fw" onchange="context()">
                    <option value="1">货物招标</option>
                    <option value="2">服务招标</option>
                    <option value="3">工程招标</option>
                </select></p>
            </td>
        </tr>
        <tr>
            <td width="26%" align="right"><p>中标金额</p><br>
               </td>
            <td width="3%">&nbsp;</td>
            <td width="71%"><p><input name="" type="tel" class="inputext" id="srzrXS" onKeyUp="context();">元</p><br>
                <p id="srzrDS"></p></td>
        </tr>
        <tr>
            <td align="right"><p>标准收费</p><br>
               </td>
            <td>&nbsp;</td>
            <td><p id="bzsfSX">￥0.00</p><br>
                <p id="bzsfDX"></p></td>
        </tr>
        <tr>
            <td align="right"><p>限高收费</p><br>
               </td>
            <td>&nbsp;</td>
            <td><p id="xgsfSX">¥0.00</p><br>
                <p id="xgsfDX"></p></td>
        </tr>
        <tr>
            <td align="right"><p>浮动系数</p></td>
            <td>&nbsp;</td>
            <td><p><input name="" type="tel" value="100" class="inputext" id="fdxs" onKeyUp="context();">%</p></td>
        </tr>
        <tr>
            <td align="right" onclick="alert(share_computation_web())"><p>收费金额</p><br>
               </td>
            <td>&nbsp;</td>
            <td><p id="sfjrXS">￥0.00</p><br>
                <p id="sfjrDS"></p></td>
        </tr>
        </tbody>
    </table>
</div>


<br>


<div class="copy_div" id="copy_div">
    <div class="cp_btn" onclick="copyProcessFun('中华人民共和国国家计划委员会、招标代理服务收费管理暂行办法（计价格［2002］1980号）');">复制过程</div>
</div>

<div id="process" class="process_div"></div>

<div class="policy_div">
    <p style="text-align:left">
        <span style=";font-family:宋体">中华人民共和国国家计划委员会<a></a></span>
    </p>
    <p style="text-align:left">
        <span style=";font-family:宋体">招标代理服务收费管理暂行办法</span><span style=";font-family:宋体">（计价格［2002］1980号）</span>
    </p>
    <p style="text-align:left">
        <span style=";font-family:宋体">第一条&nbsp; 为规范招标代理服务收费行为，维护招标人、投标人和招标代理机构的合法权益，根据《中华人民共和国价格法》、《中华人民共和国招标投标法》及有关法律、行政法规，制定本办法。</span>
    </p>
    <p style="text-align:left">
        <span style=";font-family:宋体">第二条&nbsp; 中华人民共和国境内发生的各类招标代理服务的收费行为，适用本办法。</span>
    </p>
    <p style="text-align:left">
        <span style=";font-family:宋体">第三条&nbsp;&nbsp; 本办法所称招标代理服务收费，是指招标代理机构接受招标人委托，从事编制招标文件（包括编制资格预审文件和标底），审查投标人资格，组织投标人踏勘现场并答疑，组织开标、评标、定标，以及提供招标前期咨询、协调合同的签订等业务所收取的费用。</span>
    </p>
    <p style="text-align:left">
        <span style=";font-family:宋体">第四条&nbsp; 招标代理机构从事招标代理业务并收取服务费用的，必须符合《中华人民共和国招标投标法》第十三条、第十四条规定的条件，具备独立法人资格和相应资质。</span>
    </p>
    <p style="text-align:left">
        <span style=";font-family:宋体">第五条&nbsp; 招标代理机构应当在招标人委托的范围内办理招标事宜，遵守国家法律、法规及政策规定，符合招标人的技术、质量要求。</span>
    </p>
    <p style="text-align:left">
        <span style=";font-family:宋体">第六条&nbsp; 招标代理服务应当遵循公开、公正、平等、自愿、有偿的原则。严格禁止任何单位和个人为招标人强制指定招标代理机构或强制具有自行招标资格的单位接收代理并收取费用。</span>
    </p>
    <p style="text-align:left">
        <span style=";font-family:宋体">第七条&nbsp; 招标代理服务收费按照招标代理业务性质分为：</span>
    </p>
    <p style="text-align:left">
        <span style=";font-family:宋体">&nbsp;(</span><span style=";font-family:宋体">一)各类土木工程、建筑工程、设备安装、管道线路敷设、装饰装修等建设以及附带服务的工程招标代理服务收费。</span>
    </p>
    <p style="text-align:left">
        <span style=";font-family:宋体">&nbsp;(</span><span style=";font-family:宋体">二)原材料、产品、设备和固态、液态或气态物体和电力等货物及其附带服务的货物招标代理服务收费。</span>
    </p>
    <p style="text-align:left">
        <span style=";font-family:宋体">&nbsp;(</span><span style=";font-family:宋体">三)工程勘察、设计、咨询、监理，矿业权、土地使用权出让、转让和保险等工程和货物以外的服务招标代理服务收费。</span>
    </p>
    <p style="text-align:left">
        <span style=";font-family:宋体">第八条&nbsp; 招标代理服务收费实行政府指导价。</span>
    </p>
    <p style="text-align:left">
        <span style=";font-family:宋体">第九条&nbsp; 招标代理服务收费采用差额定率累进计费方式。收费标准按本办法附件规定执行，上下浮动幅度不超过20％。具体收费额由招标代理机构和招标委托人在规定的收费标准和浮动幅度内协商确定。</span>
    </p>
    <p style="text-align:left">
        <span style=";font-family:宋体">出售招标文件可以收取编制成本费，具体定价办法由省、自治区、直辖市价格主管部门按照不以营利为目的的原则制定。</span>
    </p>
    <p style="text-align:left">
        <span style=";font-family:宋体">第十条&nbsp; 招标代理服务实行“谁委托谁付费”。</span>
    </p>
    <p style="text-align:left">
        <span style=";font-family:宋体">工程招标委托人支付的招标代理服务费，可计入工程前期费用。货物招标和服务招标委托人支付的招标代理服务费，按照财政部门规定列支。</span>
    </p>
    <p style="text-align:left">
        <span style=";font-family:宋体">第十一条&nbsp; 招标代理机构按规定收取代理费用和出售招标文件后，不得再要求招标委托人无偿提供食宿、交通等或收取其他费用。</span>
    </p>
    <p style="text-align:left">
        <span style=";font-family:宋体">第十二条&nbsp; 招标代理业务中有超出本办法第三条规定的要求的，招标代理机构可与招标委托人就所增加的工作量，另行协商确定服务费用。</span>
    </p>
    <p style="text-align:left">
        <span style=";font-family:宋体">第十三条&nbsp; 招标代理服务收费纠纷，依据《中华人民共和国价格法》、《中华人民共和国合同法》及其他有关法律、法规处理。</span>
    </p>
    <p style="text-align:left">
        <span style=";font-family:宋体">第十四条&nbsp; 各级政府有关部门或者其授权、委托的单位，按照国务院关于招标投标管理职能分工规定履行监督职能，要求招标投标当事人履行审批、备案及其他手续的，一律不得收费。</span>
    </p>
    <p style="text-align:left">
        <span style=";font-family:宋体">违反前款规定，擅自设立收费项目、制定收费标准以及收取管理性费用的，由政府价格主管部门予以处罚。</span>
    </p>
    <p style="text-align:left">
        <span style=";font-family:宋体">第十五条&nbsp; 招标代理机构违反本办法规定的，由政府价格主管部门依据《中华人民共和国价格法》和《价格违法行为行政处罚规定》予以查处。</span>
    </p>
    <p style="text-align:left">
        <span style=";font-family:宋体">第十六条&nbsp; 本办法由国家计委负责解释。</span>
    </p>
    <p style="text-align:left">
        <span style=";font-family:宋体">第十七条&nbsp; 本办法自2003年1月1日起执行。国家计委及有关部门，各省、自治区、直辖市价格主管部门制定的相关规定，凡与本办法相抵触的，自本办法生效之日起废止。</span>
    </p>
    <p style="text-align:left">
        <span style=";font-family:宋体">附：招标代理服务收费标准</span>
    </p>
    <table class="tableC">
        <tbody>
        <tr style=";height:1px" class="firstRow">
            <td width="77">
                <p style="text-align:left">
                    <span style="font-family: 宋体">服务类型中标金额（万元）</span>
                </p>
            </td>
            <td width="66">
                <p style="text-align:left">
                    <span style="font-family: 宋体">货物招标</span>
                </p>
            </td>
            <td width="66">
                <p style="text-align:left">
                    <span style="font-family: 宋体">服务招标</span>
                </p>
            </td>
            <td width="66">
                <p style="text-align:left">
                    <span style="font-family: 宋体">工程招标</span>
                </p>
            </td>
            <td width="50">
                <p style="text-align:left">
                    <span style="font-family: 宋体">文件依据</span>
                </p>
            </td>
        </tr>
        <tr style=";height:1px">
            <td width="77">
                <p style="text-align:left">
                    <span style="font-family: 宋体">100</span><span style="font-family: 宋体">以下</span>
                </p>
            </td>
            <td width="66">
                <p style="text-align:left">
                    <span style="font-family: 宋体">0.015</span>
                </p>
            </td>
            <td width="66">
                <p style="text-align:left">
                    <span style="font-family: 宋体">0.015</span>
                </p>
            </td>
            <td width="66">
                <p style="text-align:left">
                    <span style="font-family: 宋体">0.01</span>
                </p>
            </td>
            <td width="50">
                <p style="text-align:left">
                    <span style="font-family: 宋体">计价格［2002］1980号</span>
                </p>
            </td>
        </tr>
        <tr style=";height:1px">
            <td width="77">
                <p style="text-align:left">
                    <span style="font-family: 宋体">100</span><span style="font-family: 宋体">—500</span>
                </p>
            </td>
            <td width="66">
                <p style="text-align:left">
                    <span style="font-family: 宋体">0.011</span>
                </p>
            </td>
            <td width="66">
                <p style="text-align:left">
                    <span style="font-family: 宋体">0.008</span>
                </p>
            </td>
            <td width="66">
                <p style="text-align:left">
                    <span style="font-family: 宋体">0.007</span>
                </p>
            </td>
            <td width="50">
                <p style="text-align:left">
                    <span style="font-family: 宋体">同上</span>
                </p>
            </td>
        </tr>
        <tr style=";height:1px">
            <td width="77">
                <p style="text-align:left">
                    <span style="font-family: 宋体">500</span><span style="font-family: 宋体">—1000</span>
                </p>
            </td>
            <td width="66">
                <p style="text-align:left">
                    <span style="font-family: 宋体">0.008</span>
                </p>
            </td>
            <td width="66">
                <p style="text-align:left">
                    <span style="font-family: 宋体">0.0045</span>
                </p>
            </td>
            <td width="66">
                <p style="text-align:left">
                    <span style="font-family: 宋体">0.0055</span>
                </p>
            </td>
            <td width="50">
                <p style="text-align:left">
                    <span style="font-family: 宋体">同上</span>
                </p>
            </td>
        </tr>
        <tr style=";height:1px">
            <td width="77">
                <p style="text-align:left">
                    <span style="font-family: 宋体">1000</span><span style="font-family: 宋体">—5000</span>
                </p>
            </td>
            <td width="66">
                <p style="text-align:left">
                    <span style="font-family: 宋体">0.005</span>
                </p>
            </td>
            <td width="66">
                <p style="text-align:left">
                    <span style="font-family: 宋体">0.0025</span>
                </p>
            </td>
            <td width="66">
                <p style="text-align:left">
                    <span style="font-family: 宋体">0.0035</span>
                </p>
            </td>
            <td width="50">
                <p style="text-align:left">
                    <span style="font-family: 宋体">同上</span>
                </p>
            </td>
        </tr>
        <tr style=";height:1px">
            <td width="77">
                <p style="text-align:left">
                    <span style="font-family: 宋体">5000</span><span style="font-family: 宋体">—10000</span>
                </p>
            </td>
            <td width="66">
                <p style="text-align:left">
                    <span style="font-family: 宋体">0.0025</span>
                </p>
            </td>
            <td width="66">
                <p style="text-align:left">
                    <span style="font-family: 宋体">0.001</span>
                </p>
            </td>
            <td width="66">
                <p style="text-align:left">
                    <span style="font-family: 宋体">0.002</span>
                </p>
            </td>
            <td width="50">
                <p style="text-align:left">
                    <span style="font-family: 宋体">同上</span>
                </p>
            </td>
        </tr>
        <tr style=";height:1px">
            <td width="77">
                <p style="text-align:left">
                    <span style="font-family: 宋体">10000</span><span style="font-family: 宋体">——500000</span>
                </p>
            </td>
            <td width="66">
                <p style="text-align:left">
                    <span style="font-family: 宋体">0.0005</span>
                </p>
            </td>
            <td width="66">
                <p style="text-align:left">
                    <span style="font-family: 宋体">0.0005</span>
                </p>
            </td>
            <td width="66">
                <p style="text-align:left">
                    <span style="font-family: 宋体">0.0005</span>
                </p>
            </td>
            <td width="50">
                <p style="text-align:left">
                    <span style="font-family: 宋体">同上</span>
                </p>
            </td>
        </tr>
        <tr style=";height:1px">
            <td width="77">
                <p style="text-align:left">
                    <span style="font-family: 宋体">50000</span><span style="font-family: 宋体">——100000</span>
                </p>
            </td>
            <td width="66">
                <p style="text-align:left">
                    <span style="font-family: 宋体">0.00035</span>
                </p>
            </td>
            <td width="66">
                <p style="text-align:left">
                    <span style="font-family: 宋体">0.00035</span>
                </p>
            </td>
            <td width="66">
                <p style="text-align:left">
                    <span style="font-family: 宋体">0.00035</span>
                </p>
            </td>
            <td width="50">
                <p style="text-align:left">
                    <span style="font-family: 宋体">改价格[2011]534号</span>
                </p>
            </td>
        </tr>
        <tr style=";height:1px">
            <td width="77">
                <p style="text-align:left">
                    <span style="font-family: 宋体">100000</span><span style="font-family: 宋体">——500000</span>
                </p>
            </td>
            <td width="66">
                <p style="text-align:left">
                    <span style="font-family: 宋体">0.00008</span>
                </p>
            </td>
            <td width="66">
                <p style="text-align:left">
                    <span style="font-family: 宋体">0.00008</span>
                </p>
            </td>
            <td width="66">
                <p style="text-align:left">
                    <span style="font-family: 宋体">0.00008</span>
                </p>
            </td>
            <td width="50">
                <p style="text-align:left">
                    <span style="font-family: 宋体">同上</span>
                </p>
            </td>
        </tr>
        <tr style=";height:1px">
            <td width="77">
                <p style="text-align:left">
                    <span style="font-family: 宋体">500000--1000000</span>
                </p>
            </td>
            <td width="66">
                <p style="text-align:left">
                    <span style="font-family: 宋体">0.00006</span>
                </p>
            </td>
            <td width="66">
                <p style="text-align:left">
                    <span style="font-family: 宋体">0.00006</span>
                </p>
            </td>
            <td width="66">
                <p style="text-align:left">
                    <span style="font-family: 宋体">0.00006</span>
                </p>
            </td>
            <td width="50">
                <p style="text-align:left">
                    <span style="font-family: 宋体">同上</span>
                </p>
            </td>
        </tr>
        <tr style=";height:1px">
            <td width="77">
                <p style="text-align:left">
                    <span style="font-family: 宋体">1000000</span><span style="font-family: 宋体">以上</span>
                </p>
            </td>
            <td width="66">
                <p style="text-align:left">
                    <span style="font-family: 宋体">0.00004</span>
                </p>
            </td>
            <td width="66">
                <p style="text-align:left">
                    <span style="font-family: 宋体">0.00004</span>
                </p>
            </td>
            <td width="66">
                <p style="text-align:left">
                    <span style="font-family: 宋体">0.00004</span>
                </p>
            </td>
            <td width="50">
                <p style="text-align:left">
                    <span style="font-family: 宋体">同上</span>
                </p>
            </td>
        </tr>
        <tr style=";height:1px">
            <td width="77">
                <p style="text-align:left">
                    <span style="font-family: 宋体">全流程收费上限（按各标段中标金额比例计算各标段费用）</span>
                </p>
            </td>
            <td width="66">
                <p style="text-align:left">
                    <span style="font-family: 宋体">收费上限：350万元</span>
                </p>
            </td>
            <td width="66">
                <p style="text-align:left">
                    <span style="font-family: 宋体">收费上限：300万元</span>
                </p>
            </td>
            <td width="66">
                <p style="text-align:left">
                    <span style="font-family: 宋体">收费上限：450万元</span>
                </p>
            </td>
            <td width="50">
                <p style="text-align:left">
                    <span style="font-family: 宋体">同上</span>
                </p>
            </td>
        </tr>
        </tbody>
    </table>
    <p style="text-align:left">
        <span style=";font-family:宋体">注：l、按本表费率计算的收费为招标代理服务全过程的收费基准价格，单独提供编制招标文件(有标底的含标底)服务的，可按规定标准的30％计收。</span>
    </p>
    <p style="text-align:left">
        <span style=";font-family:宋体">2</span><span style=";font-family:宋体">、招称代理服务收费按差额定率累进法计算。例如：某工程招标代理业务中标金额为6000万元，计算招标代理服务收费额如下：</span>
    </p>
    <p style="text-align:left">
        <span style=";font-family:宋体">100</span><span style=";font-family:宋体">万元×1.0%=1万元</span>
    </p>
    <p style="text-align:left">
        <span style=";font-family:宋体">&nbsp;(500-100)</span><span style=";font-family:宋体">万元×0.7%=2.8万元</span>
    </p>
    <p style="text-align:left">
        <span style=";font-family:宋体">&nbsp;(1000-500)</span><span style=";font-family:宋体">万元×0.55%=2.75万元</span>
    </p>
    <p style="text-align:left">
        <span style=";font-family:宋体">&nbsp;(5000-l000)</span><span style=";font-family:宋体">万元×0.35%=14万元</span>
    </p>
    <p style="text-align:left">
        <span style=";font-family:宋体">&nbsp;(6000-5000)</span><span style=";font-family:宋体">万元×0.2%=2万元</span>
    </p>
    <p style="text-align:left">
        <span style=";font-family:宋体">合计收费=l+2.8+2.75+14+2=22.55(万元)</span>
    </p>
    <p style="text-align:left">
        <span style=";font-family:宋体">国家发展改革委关于降低部分建设项目收费标准规范收费行为等有关问题的通知</span>
    </p>
    <p style="text-align:left">
        <span style=";font-family:宋体">发改价格[2011]534号</span>
    </p>
    <p style="text-align:left">
        <span style=";font-family:宋体">住房城乡建设部、环境保护部，各省、自治区、直辖市发展改革委、物价局：</span>
    </p>
    <p style="text-align:left">
        <span style=";font-family:宋体">&nbsp;</span><span style=";font-family:宋体">为贯彻落实国务院领导重要批示和全国纠风工作会议精神，进一步优化企业发展环境，减轻企业和群众负担，决定适当降低部分建设项目收费标准，规范收费行为。现将有关事项通知如下：</span>
    </p>
    <p style="text-align:left">
        <span style=";font-family:宋体">一、降低保障性住房转让手续费，减免保障性住房租赁手续费。经批准设立的各房屋交易登记机构在办理房屋交易手续时，限价商品住房、棚户区改造安置住房等保障性住房转让手续费应在原国家计委、建设部《关于规范住房交易手续费有关问题的通知》（计价格[2002]121号）规定收费标准的基础上减半收取，即执行与经济适用住房相同的收费标准；因继承、遗赠、婚姻关系共有发生的住房转让免收住房转让手续费；依法进行的廉租住房、公共租赁住房等保障性住房租赁行为免收租赁手续费；住房抵押不得收取抵押手续费。</span>
    </p>
    <p style="text-align:left">
        <span style=";font-family:宋体">二、规范并降低施工图设计文件审查费。各地应加强施工图设计审查收费管理，经认定设立的施工图审查机构，承接房屋建筑、市政基础设施工程施工图审查业务收取施工图设计文件审查费，以工程勘察设计收费为基准计费的，其收费标准应不高于工程勘察设计收费标准的6.5%；以工程概（预）算投资额比率计费的，其收费标准应不高于工程概（预）算投资额的2‰；按照建筑面积计费的，其收费标准应不高于2元/平方米。具体收费标准由各省、自治区、直辖市价格主管部门结合当地实际情况，在不高于上述上限的范围内确定。各地现行收费标准低于收费上限的，一律不得提高标准。</span>
    </p>
    <p style="text-align:left">
        <span style=";font-family:宋体">三、降低部分行业建设项目环境影响咨询收费标准。各环境影响评价机构对估算投资额100亿元以下的农业、林业、渔业、水利、建材、市政（不含垃圾及危险废物集中处置）、房地产、仓储（涉及有毒、有害及危险品的除外）、烟草、邮电、广播电视、电子配件组装、社会事业与服务建设项目的环境影响评价（编制环境影响报告书、报告表）收费，应在原国家计委、国家环保总局《关于规范环境影响咨询收费有关问题的通知》（计价格 [2002）125号）规定的收费标准基础上下调20％收取；上述行业以外的化工、冶金、有色等其他建设项目的环境影响评价收费维持现行标准不变。环境影响评价收费标准中不包括获取相关经济、社会、水文、气象、环境现状等基础数据的费用。</span>
    </p>
    <p style="text-align:left">
        <span style=";font-family:宋体">四、降低中标金额在5亿元以上招标代理服务收费标准，并设置收费上限。货物、服务、工程招标代理服务收费差额费率：中标金额在5—10亿元的为0.035%；10—50亿元的为0.008%；50—100亿元为0.006%；100亿元以上为0.004%。货物、服务、工程一次招标（完成一次招标投标全流程）代理服务费最高限额分别为350万元、300万元和450万元，并按各标段中标金额比例计算各标段招标代理服务费。</span>
    </p>
    <p style="text-align:left">
        <span style=";font-family:宋体">中标金额在5亿元以下的招标代理服务收费基准价仍按原国家计委《招标代理服务收费管理暂行办法》（[2002]1980号，以下简称《办法》）附件规定执行。按《办法》附件规定计算的收费额为招标代理服务全过程的收费基准价格，但不含工程量清单、工程标底或工程招标控制价的编制费用。</span>
    </p>
    <p style="text-align:left">
        <span style=";font-family:宋体">五、适当扩大工程勘察设计和工程监理收费的市场调节价范围。工程勘察和工程设计收费，总投资估算额在1000万元以下的建设项目实行市场调节价；1000万元及以上的建设项目实行政府指导价，收费标准仍按原国家计委、建设部《关于发布〈工程勘察设计收费管理规定〉的通知》（计价格[2002]10号）规定执行。</span>
    </p>
    <p style="text-align:left">
        <span style=";font-family:宋体">工程监理收费，对依法必须实行监理的计费额在1000万元及以上的建设工程施工阶段的收费实行政府指导价，收费标准按国家发展改革委、建设部《关于印发〈建设工程监理与相关服务收费管理规定〉的通知》（发改价格[2007]670号）规定执行；其他工程施工阶段的监理收费和其他阶段的监理与相关服务收费实行市场调节价。</span>
    </p>
    <p style="text-align:left">
        <span style=";font-family:宋体">六、各地应进一步加大对建设项目及各类涉房收费项目的清理规范力度。要严禁行政机关在履行行政职责过程中，擅自或变相收取相关审查费、服务费，对自愿或依法必须进行的技术服务，应由项目开发经营单位自主选择服务机构，相关机构不得利用行政权力强制或变相强制项目开发经营单位接受指定服务并强制收取费用。</span>
    </p>
    <p>
        <span style="font-size:14px;font-family:宋体">本通知自2011年5月1日起执行。现行有关规定与本通知不符的，按本通知规定执行。</span>
    </p>
    <p>
        <br/>
    </p>
</div>
<div class="collect_div">
    <img id="collect_img" onclick="addCollectFun()" src="../img/un_collect.png">
    <div id="collect_txt" class="collect_txt">收藏</div>
</div>

<script src="../js/jquery-1.12.4.min.js"></script>
<script src="../js/common.js"></script>

<script>
    //-----------------公共变量--------------
    var assessedTitle = "";   //评估值标题
    var assessed = "";   //评估值
    var assessedDS = ""; //评估值大写

    var formula = "";   //公式
    var result = "";    //计算结果
    var resultDS = "";  //计算结果大写

    var money = "";     //收费金额
    var moneyDS = "";   //收费金额大写

    var XGSF_XS = "";
    var XGSF_DS = "";

    var SFJE_XS = "";
    var SFJE_DS = "";

    var formula2 = "";   //公式
    var moneyGS = "";
    var moneyGSDS = "";

    var XGSF_XS_GS = "";
    var XGSF_DS_GS = "";

    var FDXS = "";//浮动系数

    function share_computation() {
        var r0 = "";
        var r1 = "服务项目:" + assessedTitle;
        var r11 = "中标金额:" + assessed + "(" + assessedDS + ")";
        var r3 = "标准收费=(" + formula + ")*10000=" + money + "(" + moneyDS + ")";
        var r = r0 + "<br/><br/>" + r1 + "<br/><br/>" + r11 + "<br/><br/>" + r3;

        var obj = document.getElementById("select_fw");
        var select = obj.options[obj.selectedIndex].value;
        var xgsffff = "";
        if (select == "1") {
            xgsffff = "如果标准收费<=3500000，则限高收费值为公式计算结果，如果标准收费>3500000，则限高收费=3500000";
        } else if (select == "2") {
            xgsffff = "如果标准收费<=3000000，则限高收费值为公式计算结果，如果标准收费>3000000，则限高收费=3000000";
        } else if (select == "3") {
            xgsffff = "如果标准收费<=4500000，则限高收费值为公式计算结果，如果标准收费>4500000，则限高收费=4500000";
        }

        //var r5="限高收费:"+XGSF_XS+"("+XGSF_DS+")"+"【"+xgsffff+"】";
        var r5 = "限高收费:" + XGSF_XS + "(" + XGSF_DS + ")";
        var r6 = "浮动系数:" + FDXS + "%";
        //var r7="收费金额:"+XGSF_XS_GS+"("+XGSF_DS_GS+")";
        var r7 = "收费金额=标准收费*浮动系数=" + XGSF_XS + "*" + getV("fdxs") + "%=" + XGSF_XS_GS + "(" + XGSF_DS_GS + ")";
        r = r + "<br/><br/>" + r5 + "<br/><br/>" + r6 + "<br/><br/>" + r7;

        return r;
    }

    function share_computation_web() {
        var str = share_computation();
        var e = new RegExp("<br/>", "g");
        var words = str.replace(e, "\n");
        var cc = new RegExp("%25", "g");
        words = words.replace(cc, "%");
        return words;
    }

    function getV(did) {
        return document.getElementById(did).value;
    }

    function getH(did) {
        return document.getElementById(did).innerHTML;
    }

    //-----------------公共变量--------------

    //键盘事件计算
    function context() {
        var obj = document.getElementById("select_fw");
        var select = obj.options[obj.selectedIndex].value;
        assessedTitle = obj.options[obj.selectedIndex].text;

        var srzrXS = document.getElementById("srzrXS").value;
        if (srzrXS.length == 0) {
            return false;
        }

        var srzrDS = convertCurrency(srzrXS);
        if ("404" != srzrDS) {
            document.getElementById("srzrDS").innerHTML = srzrDS;
        }
        assessed = srzrXS;
        assessedDS = srzrDS;

        //----------计算1------------
        var A = parseFloat(srzrXS);
        var value = 0;

        if (select == "1") {
            value = getCount1(A);

        } else if (select == "2") {
            value = getCount2(A);
        } else if (select == "3") {
            value = getCount3(A);
        }

        var str = parseFloat(value).toFixed(2);
        var strDS = convertCurrency(str);
        document.getElementById("bzsfSX").innerHTML = "￥" + str;//标准收费小写
        document.getElementById("bzsfDX").innerHTML = strDS;//标准收费大写
        money = str;
        moneyDS = strDS;

        var strtemp = 0;

        if (select == "1") {
            if (str <= 3500000) {
                strtemp = str;
            } else if (str > 3500000) {
                strtemp = 3500000;
            }
        } else if (select == "2") {
            if (str <= 3000000) {
                strtemp = str;
            } else if (str > 3000000) {
                strtemp = 3000000;
            }
        } else if (select == "3") {
            if (str <= 4500000) {
                strtemp = str;
            } else if (str > 4500000) {
                strtemp = 4500000;
            }
        }

        document.getElementById("xgsfSX").innerHTML = "￥" + strtemp;//收费金额小写
        var strtempDS = convertCurrency(strtemp);
        document.getElementById("xgsfDX").innerHTML = strtempDS;//收费金额大写

        XGSF_XS = strtemp;
        XGSF_DS = strtempDS;

        //浮动比例
        var fdxs = document.getElementById("fdxs").value;
        FDXS = fdxs;

        if (fdxs.length == 0) {
            return false;
        }
        var fdxs = parseFloat(fdxs) / 100;

        var moneyff = strtemp * fdxs;//收费金额
        document.getElementById("sfjrXS").innerHTML = "￥" + moneyff;//收费金额小写
        var moneyffDS = convertCurrency(moneyff);
        document.getElementById("sfjrDS").innerHTML = moneyffDS;//收费金额大写
        XGSF_XS_GS = moneyff;
        XGSF_DS_GS = moneyffDS;
        //-----------计算1--------------------
        showProcess();
        //显示计算过程
        document.getElementById("process").innerHTML = "<h3>小程序：计费宝</h3>" + share_computation();
    }


    function getCount1(A) {
        A = A / 10000;
        var count = 0.00;
        formula = "0.00";
        if (A <= 100) {
            count = A * 0.015;
            formula = "" + A + "*0.015";
        } else if (A <= 500) {
            count = 100 * 0.015 + (A - 100) * 0.011;
            formula = "100*0.015+(" + A + "-100)*0.011";
        } else if (A <= 1000) {
            count = 100 * 0.015 + 400 * 0.011 + (A - 500) * 0.008;
            formula = "100*0.015+400*0.011+(" + A + "-500)*0.008";
        } else if (A <= 5000) {
            count = 100 * 0.015 + 400 * 0.011 + 500 * 0.008 + (A - 1000) * 0.005;
            formula = "100*0.015+400*0.011+500*0.008+(" + A + "-1000)*0.005";
        } else if (A <= 10000) {
            count = 100 * 0.015 + 400 * 0.011 + 500 * 0.008 + 4000 * 0.005 + (A - 5000) * 0.0025;
            formula = "100*0.015+400*0.011+500*0.008+4000*0.005+(" + A + "-5000)*0.0025";
        } else if (A <= 50000) {
            count = 100 * 0.015 + 400 * 0.011 + 500 * 0.008 + 4000 * 0.005 + 5000 * 0.0025 + (A - 10000) * 0.0005;
            formula = "100*0.015+400*0.011+500*0.008+4000*0.005+5000*0.0025+(" + A + "-10000)*0.0005";
        } else if (A <= 100000) {
            count = 100 * 0.015 + 400 * 0.011 + 500 * 0.008 + 4000 * 0.005 + 5000 * 0.0025 + 40000 * 0.0005 + (A - 50000) * 0.00035;
            formula = "100*0.015+400*0.011+500*0.008+4000*0.005+5000*0.0025+40000*0.0005+(" + A + "-50000)*0.00035";
        } else if (A <= 500000) {
            count = 100 * 0.015 + 400 * 0.011 + 500 * 0.008 + 4000 * 0.005 + 5000 * 0.0025 + 40000 * 0.0005 + 50000 * 0.00035 + (A - 100000) * 0.00008;
            formula = "100*0.015+400*0.011+500*0.008+4000*0.005+5000*0.0025+40000*0.0005+50000*0.00035+(" + A + "-100000)*0.00008";
        } else if (A <= 1000000) {
            count = 100 * 0.015 + 400 * 0.011 + 500 * 0.008 + 4000 * 0.005 + 5000 * 0.0025 + 40000 * 0.0005 + 50000 * 0.00035 + 400000 * 0.00008 + (A - 500000) * 0.00006;
            formula = "100*0.015+400*0.011+500*0.008+4000*0.005+5000*0.0025+40000*0.0005+50000*0.00035+400000*0.00008+(" + A + "-500000)*0.00006";
        } else if (A > 10000) {
            count = 100 * 0.015 + 400 * 0.011 + 500 * 0.008 + 4000 * 0.005 + 5000 * 0.0025 + 40000 * 0.0005 + 50000 * 0.00035 + 400000 * 0.00008 + 500000 * 0.00006 + (A - 1000000) * 0.00004;
            formula = "100*0.015+400*0.011+500*0.008+4000*0.005+5000*0.0025+40000*0.0005+50000*0.00035+400000*0.00008+500000*0.00006+(" + A + "-1000000)*0.00004";
        }
        return count * 10000;
    }

    function getCount2(A) {
        A = A / 10000;
        var count = 0.00;
        formula = "0.00";
        if (A <= 100) {
            count = A * 0.015;
            formula = "" + A + "*0.015";
        } else if (A <= 500) {
            count = 100 * 0.015 + (A - 100) * 0.008;
            formula = "100*0.015+(" + A + "-100)*0.008";
        } else if (A <= 1000) {
            count = 100 * 0.015 + 400 * 0.008 + (A - 500) * 0.0045;
            formula = "100*0.015+400*0.008+(" + A + "-500)*0.0045";
        } else if (A <= 5000) {
            count = 100 * 0.015 + 400 * 0.008 + 500 * 0.0045 + (A - 1000) * 0.0025;
            formula = "100*0.015+400*0.008+500*0.0045+(" + A + "-1000)*0.0025";
        } else if (A <= 10000) {
            count = 100 * 0.015 + 400 * 0.008 + 500 * 0.0045 + 4000 * 0.0025 + (A - 5000) * 0.001;
            formula = "100*0.015+400*0.008+500*0.0045+4000*0.0025+(" + A + "-5000)*0.001";
        } else if (A <= 50000) {
            count = 00 * 0.015 + 400 * 0.008 + 500 * 0.0045 + 4000 * 0.0025 + 5000 * 0.001 + (A - 10000) * 0.0005;
            formula = "00*0.015+400*0.008+500*0.0045+4000*0.0025+5000*0.001+(" + A + "-10000)*0.0005";
        } else if (A <= 100000) {
            count = 100 * 0.015 + 400 * 0.008 + 500 * 0.0045 + 4000 * 0.0025 + 5000 * 0.001 + 40000 * 0.0005 + (A - 50000) * 0.00035;
            formula = "100*0.015+400*0.008+500*0.0045+4000*0.0025+5000*0.001+40000*0.0005+(" + A + "-50000)*0.00035";
        } else if (A <= 500000) {
            count = 100 * 0.015 + 400 * 0.008 + 500 * 0.0045 + 4000 * 0.0025 + 5000 * 0.001 + 40000 * 0.0005 + 50000 * 0.00035 + (A - 100000) * 0.00008;
            formula = "100*0.015+400*0.008+500*0.0045+4000*0.0025+5000*0.001+40000*0.0005+50000*0.00035+(" + A + "-100000)*0.00008";
        } else if (A <= 1000000) {
            count = 100 * 0.015 + 400 * 0.008 + 500 * 0.0045 + 4000 * 0.0025 + 5000 * 0.001 + 40000 * 0.0005 + 50000 * 0.00035 + 400000 * 0.00008 + (A - 500000) * 0.00006;
            formula = "100*0.015+400*0.008+500*0.0045+4000*0.0025+5000*0.001+40000*0.0005+50000*0.00035+400000*0.00008+(" + A + "-500000)*0.00006";
        } else if (A > 10000) {
            count = 100 * 0.015 + 400 * 0.008 + 500 * 0.0045 + 4000 * 0.0025 + 5000 * 0.001 + 40000 * 0.0005 + 50000 * 0.00035 + 400000 * 0.00008 + 500000 * 0.00006 + (A - 1000000) * 0.00004;
            formula = "100*0.015+400*0.008+500*0.0045+4000*0.0025+5000*0.001+40000*0.0005+50000*0.00035+400000*0.00008+500000*0.00006+(" + A + "-1000000)*0.00004";
        }
        return count * 10000;
    }

    function getCount3(A) {
        A = A / 10000;
        var count = 0.00;
        formula = "0.00";
        if (A <= 100) {
            count = A * 0.01;
            formula = "" + A + "*0.01";
        } else if (A <= 500) {
            count = 100 * 0.01 + (A - 100) * 0.007;
            formula = "100*0.01+(" + A + "-100)*0.007";
        } else if (A <= 1000) {
            count = 100 * 0.01 + 400 * 0.007 + (A - 500) * 0.0055;
            formula = "100*0.01+400*0.007+(" + A + "-500)*0.0055";
        } else if (A <= 5000) {
            count = 100 * 0.01 + 400 * 0.007 + 500 * 0.0055 + (A - 1000) * 0.0035;
            formula = "100*0.01+400*0.007+500*0.0055+(" + A + "-1000)*0.0035";
        } else if (A <= 10000) {
            count = 100 * 0.01 + 400 * 0.007 + 500 * 0.0055 + 4000 * 0.0035 + (A - 5000) * 0.002;
            formula = "100*0.01+400*0.007+500*0.0055+4000*0.0035+(" + A + "-5000)*0.002";
        } else if (A <= 50000) {
            count = 100 * 0.01 + 400 * 0.007 + 500 * 0.0055 + 4000 * 0.0035 + 5000 * 0.002 + (A - 10000) * 0.0005;
            formula = "100*0.01+400*0.007+500*0.0055+4000*0.0035+5000*0.002+(" + A + "-10000)*0.0005";
        } else if (A <= 100000) {
            count = 100 * 0.01 + 400 * 0.007 + 500 * 0.0055 + 4000 * 0.0035 + 5000 * 0.002 + 40000 * 0.0005 + (A - 50000) * 0.00035;
            formula = "100*0.01+400*0.007+500*0.0055+4000*0.0035+5000*0.002+40000*0.0005+(" + A + "-50000)*0.00035";
        } else if (A <= 500000) {
            count = 100 * 0.01 + 400 * 0.007 + 500 * 0.0055 + 4000 * 0.0035 + 5000 * 0.002 + 40000 * 0.0005 + 50000 * 0.00035 + (A - 100000) * 0.00008;
            formula = "100*0.01+400*0.007+500*0.0055+4000*0.0035+5000*0.002+40000*0.0005+50000*0.00035+(" + A + "-100000)*0.00008";
        } else if (A <= 1000000) {
            count = 100 * 0.01 + 400 * 0.007 + 500 * 0.0055 + 4000 * 0.0035 + 5000 * 0.002 + 40000 * 0.0005 + 50000 * 0.00035 + 400000 * 0.00008 + (A - 500000) * 0.00006;
            formula = "100*0.01+400*0.007+500*0.0055+4000*0.0035+5000*0.002+40000*0.0005+50000*0.00035+400000*0.00008+(" + A + "-500000)*0.00006";
        } else if (A > 10000) {
            count = 100 * 0.01 + 400 * 0.007 + 500 * 0.0055 + 4000 * 0.0035 + 5000 * 0.002 + 40000 * 0.0005 + 50000 * 0.00035 + 400000 * 0.00008 + 500000 * 0.00006 + (A - 1000000) * 0.00004;
            formula = "100*0.01+400*0.007+500*0.0055+4000*0.0035+5000*0.002+40000*0.0005+50000*0.00035+400000*0.00008+500000*0.00006+(" + A + "-1000000)*0.00004";
        }

        return count * 10000;
    }


    function convertCurrency(currencyDigits) {
// Constants:
        var MAXIMUM_NUMBER = 999999999999999999.99;
// Predefine the radix characters and currency symbols for output:
        var CN_ZERO = "零";
        var CN_ONE = "壹";
        var CN_TWO = "贰";
        var CN_THREE = "叁";
        var CN_FOUR = "肆";
        var CN_FIVE = "伍";
        var CN_SIX = "陆";
        var CN_SEVEN = "柒";
        var CN_EIGHT = "捌";
        var CN_NINE = "玖";
        var CN_TEN = "拾";
        var CN_HUNDRED = "佰";
        var CN_THOUSAND = "仟";
        var CN_TEN_THOUSAND = "万";
        var CN_HUNDRED_MILLION = "亿";
        var CN_SYMBOL = "";
        var CN_DOLLAR = "元";
        var CN_TEN_CENT = "角";
        var CN_CENT = "分";
        var CN_INTEGER = "整";

// Variables:
        var integral; // Represent integral part of digit number.
        var decimal; // Represent decimal part of digit number.
        var outputCharacters; // The output result.
        var parts;
        var digits, radices, bigRadices, decimals;
        var zeroCount;
        var i, p, d;
        var quotient, modulus;

// Validate input string:
        currencyDigits = currencyDigits.toString();
        if (currencyDigits == "") {
            alert("输入项为空");
            return "";
        }
        if (currencyDigits.match(/[^,.\d]/) != null) {
            //alert("Invalid characters in the input string!");
            alert("非法输入");
            return "";
        }
        if ((currencyDigits).match(/^((\d{1,3}(,\d{3})*(.((\d{3},)*\d{1,3}))?)|(\d+(.\d+)?))$/) == null) {
            //alert("Illegal format of digit number!");
            return "404";
        }

//小数点截取,如果小数为0就取整
        if (currencyDigits.indexOf(".00") > 0) {
            currencyDigits = currencyDigits.substr(0, currencyDigits.indexOf('.'));
        }

// Normalize the format of input digits:
        currencyDigits = currencyDigits.replace(/,/g, ""); // Remove comma delimiters.
        currencyDigits = currencyDigits.replace(/^0+/, ""); // Trim zeros at the beginning.
// Assert the number is not greater than the maximum number.
        if (Number(currencyDigits) > MAXIMUM_NUMBER) {
            alert("Too large a number to convert!");
            return "";
        }

// Process the coversion from currency digits to characters:
// Separate integral and decimal parts before processing coversion:
        parts = currencyDigits.split(".");
        if (parts.length > 1) {
            integral = parts[0];
            decimal = parts[1];
            // Cut down redundant decimal digits that are after the second.
            decimal = decimal.substr(0, 2);
        } else {
            integral = parts[0];
            decimal = "";
        }
// Prepare the characters corresponding to the digits:
        digits = new Array(CN_ZERO, CN_ONE, CN_TWO, CN_THREE, CN_FOUR, CN_FIVE, CN_SIX, CN_SEVEN, CN_EIGHT, CN_NINE);
        radices = new Array("", CN_TEN, CN_HUNDRED, CN_THOUSAND);
        bigRadices = new Array("", CN_TEN_THOUSAND, CN_HUNDRED_MILLION);
        decimals = new Array(CN_TEN_CENT, CN_CENT);
// Start processing:
        outputCharacters = "";
// Process integral part if it is larger than 0:
        if (Number(integral) > 0) {
            zeroCount = 0;
            for (i = 0; i < integral.length; i++) {
                p = integral.length - i - 1;
                d = integral.substr(i, 1);
                quotient = p / 4;
                modulus = p % 4;
                if (d == "0") {
                    zeroCount++;
                } else {
                    if (zeroCount > 0) {
                        outputCharacters += digits[0];
                    }
                    zeroCount = 0;
                    outputCharacters += digits[Number(d)] + radices[modulus];
                }
                if (modulus == 0 && zeroCount < 4) {
                    outputCharacters += bigRadices[quotient];
                }
            }
            outputCharacters += CN_DOLLAR;
        }
// Process decimal part if there is:
        if (decimal != "") {
            for (i = 0; i < decimal.length; i++) {
                d = decimal.substr(i, 1);
                if (d != "0") {
                    outputCharacters += digits[Number(d)] + decimals[i];
                }
            }
        }
// Confirm and return the final output string:
        if (outputCharacters == "") {
            outputCharacters = CN_ZERO + CN_DOLLAR;
        }
        if (decimal == "") {
            outputCharacters += CN_INTEGER;
        }
        outputCharacters = CN_SYMBOL + outputCharacters;
        return outputCharacters;
    }
</script>
</body>
</html>
